package com.zrj.auth.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zrj.auth.pojo.dto.MemberAuthInfoDTO;
import com.zrj.auth.pojo.dto.MemberDTO;
import com.zrj.auth.pojo.entity.UmsMember;

/**
 * @author zhaorujie
 */
public interface IUmsMemberService extends IService<UmsMember> {

    /**
     * 根据 openid 获取会员认证信息
     *
     * @param openid
     * @return
     */
    MemberAuthInfoDTO getByOpenid(String openid);

    /**
     * 根据手机号获取会员认证信息
     *
     * @param mobile
     * @return
     */
    MemberAuthInfoDTO getByMobile(String mobile);

    /**
     * 添加用户
     * @param memberDTO
     */
    void addMember(MemberDTO memberDTO);
}
